import image from "@/bizCompoments/Image/defineProps";
import Register from "./register";

console.log("mainfest: ", image);
const componentRegister = new Register([image]).init();

export const setData = async (global: any) => {
  console.log("mainfest: ", image);
  try {
    const res = await global.$registerModules({
      modules: componentRegister,
    });
    console.log("res: ", res);
    console.log("register success");
    return res;
  } catch (err) {
    console.log("err: ", err);
    console.log("register failed");
    return Promise.reject(err);
  }
};
